<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Client profile</title>
    </h:head>
    <h:body>
        <h:form>
            <h:panelGrid columns="3" cellpadding="5">
                <p:outputLabel for="clientName" 
                               value="#{bundle.name}: " />
                <p:outputLabel id="clientName" 
                             value="#{changePasswordController.oldPassword}">
                    <f:validateLength minimum="3" maximum="30"/>
                </p:inputText>
                <p:message for="oldPassword"/>
                
                <p:outputLabel for="newPassword" 
                               value="#{bundle.new_password}: " />
                <p:inputText id="newPassword" 
                             value="#{changePasswordController.newPassword}"
                             required="true">
                    <f:validateLength minimum="3" maximum="30"/>
                </p:inputText>
                <p:message for="newPassword"/>
                
                <p:outputLabel for="newPasswordConfirm" 
                               value="#{bundle.confirm_new_password}: " />
                <p:inputText id="newPasswordConfirm" 
                             value="#{changePasswordController.newPasswordConfirm}"
                             required="true">
                    <f:validateLength minimum="3" maximum="30"/>
                </p:inputText>
                <p:message for="newPasswordConfirm"/>
                
                <p:commandButton id = "saveButton" 
                                 title="#{bundle.save_button}"
                                 value="#{changePasswordController.changePassword()}">
                    
                </p:commandButton>
                
            </h:panelGrid>
         </h:form>
        
    </h:body>
</html>

